package com.springboot.cloud.demos.entity.form;

import com.springboot.cloud.common.web.entity.form.BaseForm;
import com.springboot.cloud.demos.entity.po.VideoLesson;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@ApiModel
@Data
public class VideoLessonForm extends BaseForm<VideoLesson> {

    @NotBlank(message = "产品名称不能为空")
    @ApiModelProperty(value = "产品名称")
    private String title;

    @ApiModelProperty(value = "产品描述")
    @NotBlank(message = "产品名称不能为空")
    private String subtitle;

    private String id;
    private String teacherId;
    private String cover;
    private String levelId;
    private String url;
    private String free = "0";
    private Integer playCount = 0;
}
